go/types.dependency.Pkg (method)
20 uses
go/types (current package)
decl.go#L307: return packagePrefix(obj.Pkg(), check.qualifier) + obj.Name()
errsupport.go#L55: if obj.Pkg() == check.pkg {
object.go#L32: Pkg() *Package // package to which this object belongs; nil for labels and objects in the Universe scope
object.go#L564: if obj.Pkg() != nil && obj.Pkg().scope.Lookup(obj.Name()) == obj {
object.go#L565: buf.WriteString(packagePrefix(obj.Pkg(), qf))
resolver.go#L475: err.addf(alt, "%s already declared through dot-import of %s", alt.Name(), obj.Pkg())
typexpr.go#L74: if typ == nil || (gotType && wantType && obj.Pkg() == check.pkg) {
golang.org/x/exp/apidiff
messageset.go#L61: tn := types.TypeString(recv.Type(), types.RelativeTo(obj.Pkg()))
golang.org/x/tools/go/types/objectpath
objectpath.go#L173: pkg := obj.Pkg()
objectpath.go#L728: if obj.Pkg() != pkg {
golang.org/x/tools/internal/gcimporter
iexport.go#L285: pkgObjs[obj.Pkg()] = append(pkgObjs[obj.Pkg()], pkgObj{obj, name})
iexport.go#L420: if obj.Pkg() == types.Unsafe {
iexport.go#L425: if p.shallow && obj.Pkg() != p.localpkg {
iexport.go#L918: if obj.Pkg() == nil || obj.Pkg() == w.p.localpkg {
iexport.go#L950: w.pkg(obj.Pkg())
iexport.go#L1022: w.typ(obj.Type(), obj.Pkg())
iimport.go#L671: obj.Pkg().Scope().Insert(obj)
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)